# -*- coding: utf-8 -*-

import os

listen_ip = os.getenv('LISTEN_IP', '[::]')
port = 8234
enable_ssl = False
if os.getenv('ENABLE_SSL', 'false') == 'true':
    enable_ssl = True
private_key_certificate_chain_pairs = None
root_certificates = None
require_client_auth = True

base_dir = os.getenv('BASE_DIR', './target')

jwt_public_key_def = '-----BEGIN PUBLIC KEY-----\n' \
                 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmesVPVWJmsRIzitiu6rs\n' \
                 'bbIfBbt3t97qiJ4yQH1bCHpYu+ab+Xs5heSnfFjHH8nZDAR0n2zvliztIvTDwl/2\n ' \
                 'NF9+/loFvmQMrSv1dQQCOBc5qZ5rw/0o7Cq3buXHHJ7CwP0NnreK4N1sZ4oLBTQQ\n'\
                 'e4ERkXhiBNVxAmnbgl7QuhemMV0gxPABSLLKGIrzYR7n8OFDCuSAyOcaoyxJihA/\n'\
                 '4Tkh+Vs82tWlFglV7UxtU2+3e5sN9u/TJ5J3qRZnYq/NWymix9RRD53vp1RGUMCg\n'\
                 'kT40wK5Ak9qdVkr82JTR1g7AtXm9SxlgMNr0rD35WSacioFwECWun+VPL4FyzZ30\n'\
                 'BwIDAQAB\n'\
                 '-----END PUBLIC KEY-----'
jwt_public_key = os.getenv('JWT_PUBLIC_KEY', jwt_public_key_def)

db_user = os.getenv('DB_USER', '')
db_password = os.getenv('DB_PASSWORD', '')
db_host = os.getenv('DB_HOST', '')
db_port = int(os.getenv('DB_PORT', ''))
db_name = os.getenv('DB_NAME', '')
